home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Handler / c / DragFinish < prev    next >
Text File  |  1995-07-09  |  738b  |  26 lines

  1. #include "DeskLib:Wimp.h"
  2. #include "DeskLib:Drag.h"
  3. #include "DeskLib:Handler.h"
  4.  
  5. /*  Attach this handler to Drag finish events while dragging, after
  6.  *  registering your handlers with Drag_SetHandlers (See drag.h)
  7.  *  You will probably want to attach the DragNULL handler as well.
  8.  *  If you're using the event_ sublibrary, then use Drag_Initialise to attach
  9.  *  these handlers for you.
  10.  */
  11.  
  12. extern BOOL Handler_DragFinish(event_pollblock *event, void *reference)
  13. {
  14.   UNUSED( reference);
  15.   UNUSED( event);
  16.   
  17.   if (drag_currentcomplete != NULL)
  18.     drag_currentcomplete(drag_currentuserdata);
  19.  
  20.   drag_currentuserdata = NULL;  /* Disable handlers again */
  21.   drag_currentupdate   = NULL;
  22.   drag_currentcomplete = NULL;
  23.  
  24.   return(FALSE);
  25. }
  26.